/**
 * Created by shbs on 06/06/2018.
 */
function setIframeHeight(iframe) {
    if (iframe) {

        var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
        if (iframeWin.document.body) {
            iframe.height = iframeWin.document.body.scrollHeight || iframeWin.document.body.scrollHeight;
            var minheight = document.body.scrollHeight-110;
            if(iframe.height<minheight){
                iframe.height=minheight;
            }
        }
    }
};
window.onload = function () {
    setIframeHeight(document.getElementById('external-frame'));
};
window.reset=function () {
    setIframeHeight(document.getElementById('external-frame'));
}